<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${majorItemBank.id}" type="hidden">
                        <input id="createrId" name="createrId" th:value="${majorItemBank.createrId}" type="hidden">
                        <input id="createrDate" name="createrDate" th:value="${majorItemBank.createrDate}" type="hidden">
                        <input id="state" name="state" th:value="${majorItemBank.state}" type="hidden">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">教学专业：</label>
                            <div class="col-sm-8">
                                <input id="teacherMajorIdHidden" class="form-control"  type="hidden" th:value="${majorItemBank.teacherMajorId}" />
                                <select id="teacherMajorId" name="teacherMajorId" placeholder="请选择教学专业" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${teachingMajor}" th:selected="${majorItemBank.teacherMajorId eq item.id}"
                                            th:value="${item.id}" th:text="${item.name}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目类型：</label>
                            <div class="col-sm-8">
                                <input id="typeHidden" th:value="${majorItemBank.type}"
                                       class="form-control" type="hidden">
                                <select id="type" name="type" placeholder="请选择题目类型" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">单选题</option>
                                    <option value="1">多选题</option>
                                    <option value="2">判断题</option>
                                    <option value="3">填空</option>
                                    <option value="4">问答题</option>
                                </select>
                                <span id="questionText" name="questionText"style="display:block ;color: red;">问答题将由老师阅题给分</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目内容(填空题--填空处请使用两个英文下划线“__”代替)：</label>
                            <div class="col-sm-8">
                                <textarea id="topicContent" name="topicContent" th:text="${majorItemBank.topicContent}" placeholder="请输入题目内容" class="form-control" type="text"></textarea>
                            </div>
                        </div>
                        <div class="form-group otherType" >
                            <label class="col-sm-3 control-label">答案选项(如有选项，请使用英文“;;”隔开每个选项，没有选项则可不填)：</label>
                            <div class="col-sm-8 otherType">
                                <input id="options" name="options" th:value="${majorItemBank.options}" placeholder="请输入答案选项" class="form-control" type="text">

                            </div>
                        </div>
                        <div class="form-group otherType">
                            <label class="col-sm-3 control-label">正确答案(请使用英文“;;”隔开每个选项)：</label>
                            <div class="col-sm-8">
                                <input id="rightKey" name="rightKey" th:value="${majorItemBank.rightKey}" placeholder="请输入正确答案" class="form-control" type="text">

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目解析：</label>
                            <div class="col-sm-8">
                                <textarea id="topicAnalysis" name="topicAnalysis"  th:text="${majorItemBank.topicAnalysis}"  placeholder="请输入题目解析" class="form-control" type="text"></textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目资源类型：</label>
                            <div class="col-sm-8">
                                <input id="resourceTypeHidden" th:value="${majorItemBank.resourceType}"
                                       class="form-control" type="hidden">
                                <select id="resourceType" name="resourceType" placeholder="请选择题目资源类型" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">文字</option>
                                    <option value="1">图片</option>
                                    <option value="2">视频</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group" style="display: none" id="resourse">
                            <label class="col-sm-3 control-label">资源上传：</label>
                            <div class="col-sm-8">
                                <button type="button" class="btn btn-success inp_1"
                                        style="margin-top: 20px;display: none" id="btnUpload">
                                    <i class="fa fa-cloud"></i>上传资源
                                </button>
                                <input type="text" style="opacity:0;width: 1px;" id="resourceUrl"
                                       name="resourceUrl"  th:value="${majorItemBank.resourceUrl}" />
                                <span id="test" name="test"  th:text="${majorItemBank.resourceUrl}" style="display:block "></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">分值：</label>
                            <div class="col-sm-8">
                                <input id="score" name="score" th:value="${majorItemBank.score}"  class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/majorItemBank/edit.js">
</script>
</body>
</html>
